package mainPackage;

import java.util.ArrayList;
import java.util.Calendar;

public class Handler extends Person implements iHandler {
	
	
	protected ArrayList<Dog> dogs = new ArrayList<Dog>();
	
	public Handler(String firstName, String lastName, Calendar dateOfBirth) {
		super.firstName = firstName;
		super.lastName = lastName;
		super.dateOfBirth = dateOfBirth;
		
	}
	
	Handler() {
		
	}

	
	@Override
	public String getName() {
		return this.firstName.concat(" " + this.lastName);
	}

	
	@Override
	public String getFirstName() {
		return this.firstName;
	}
	
	
	@Override
	public String getLastName() {
		return this.lastName;
	}
	
	@Override
	public void addDog(Dog dog) {
		this.dogs.add(dog);
	}
	
	@Override
	public ArrayList<Dog> getDogs() {
		return this.dogs;
	}

	public String toString() {
		// TODO Auto-generated method stub
		return this.firstName + " " + this.lastName;
	}
}
